package com.lhp.demo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.lhp.demo.filter.DcFilter;

@EnableZuulProxy
@SpringCloudApplication
public class Gateway_Application {
	public static void main(String[] args) {
		new SpringApplicationBuilder(Gateway_Application.class).web(true).run(args);
	}
	
	@Bean
	public DcFilter accessFilter() {
		return new DcFilter();
	}
}
